﻿using Senparc.Weixin.MP.Entities;

namespace BLWCMS.Core.Weixin.Api
{
    public partial class CustomMessageHandler
    {
        /// <summary>
        /// 处理文字请求
        /// </summary>
        /// <returns></returns>
        public override IResponseMessageBase OnTextRequest(RequestMessageText requestMessage)
        {
            //TODO:这里的逻辑可以交给Service处理具体信息，参考OnLocationRequest方法或/Service/LocationSercice.cs
            IResponseMessageBase responseMessage = null;
            //触发词为空
            if (requestMessage.Content == null)
            {

            }
            else if (requestMessage.Content == "为爱升级")
            {
                var strongResponseMessage = base.CreateResponseMessage<ResponseMessageText>();
                responseMessage = strongResponseMessage;
                strongResponseMessage.Content = "博龍微信管理系统强力驱动";
            }
            //其他情况
            else
            {
                var strongResponseMessage = base.CreateResponseMessage<ResponseMessageText>();
                responseMessage = strongResponseMessage;
                strongResponseMessage.Content = "无响应请求！";
            }


            return responseMessage;
        }
    }
}
